<div class="box box-maxbid">
	<!-- form start -->
	 <div class="overlay" ng-show="hideform"></div>
    <div class="loading-img" ng-show="hideform"></div>
	
	<form role="form" name="subcategoriaForm">
		<div class="box-body">
			<div class="form-group row">
			   <div class="col-md-6 col-xs-6">
					<label for="InputTipo">CATEGORIA</label> 
					<select coc-change class="form-control"
                                    required 
                                    ng-model="subcategoria.CATEGORIA_ID"
                                    ng-options="cat.COD as cat.NAME for cat in categories"
                                    > 
                                <option value="">Selecionar</option>

                            </select> 
					
				</div>
				<div class="col-md-5 col-xs-6">
					<label for="InputTipo">DESCRIÇÃO </label> <input ng-model="subcategoria.NAME"
						name="NAME" class="form-control" required maxlength="9"  />
				</div>
				<div class="col-md-5 col-xs-6">
					<label for="InputTipo">SLUG</label> 
					<input ng-model="subcategoria.SLUG"  name="SLUG"  disabled="disabled" class="form-control"  />

				</div>
				
			
			</div>
			

			<div class="box-footer">
			 
				<button type="submit" ng-disabled="subcategoriaForm.$invalid"
					ng-click="save()" class="btn btn-primary">Salvar</button>
					
					<button type="submit" ng-disabled="subcategoriaForm.$invalid"
					ng-click="save('/subcategories')" class="btn btn-primary">Salvar e Listar</button>
					

				<a href="#/subcategories" class="btn btn-danger">Cancelar</a>
				
			</div>
	
	</form>
</div>
<!-- /.box -->
